/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dip.dipcomplient.customer.Impl;

import za.ac.cput.dip.dipcomplient.customer.PaymentMethod;

/**
 *
 * @author given
 */
public class MasterCard implements PaymentMethod{
    private double amountDue;
    private String cardNumber;
    private String signature;

    public void setSignature(String signature) {
        this.signature = signature;
    }
    
    @Override
    public void setAmount(double amountDue) {
        this.amountDue = amountDue;
    }

    @Override
    public double getAmount() {
        return amountDue;
    }
    
    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }
    
    @Override
    public boolean passed() {
        if(amountDue > 0)
            return true;
        else
            return false;
    }
}